home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format 5 / af005.adf / Utilities / Word Count / Word Count.Doc < prev    next >
Encoding:
Text File  |  1987-06-04  |  1.3 KB  |  42 lines

  1. Andy Warren
  2. R.D. # 5 Brola Road
  3. Middletown, N.Y. 10940
  4. (914) 386-2256
  5.  
  6. This program is public domain, and may be distributed freely as long as the
  7. author message is left intact and the documentation is distributed with the
  8. program. 
  9.  
  10. UNIX is a trademark of AT & T
  11.  
  12. DOCUMENTATION FOR WC
  13.  
  14.     WC counts lines, words, and characters, respectively in a text file.
  15. I wrote it to completely emulate the UNIX (tm) wc utility program. As I have
  16. not used wc on a real UNIX system, there could be some differences; if you
  17. find any, please let me know. 
  18.     
  19. USAGE
  20.     wc -{flags} {file(s)}
  21.  
  22.     where {flags} is one or more of :
  23.         l - count only lines 
  24.         w - count only words
  25.         c - count only characters
  26.     More than one may be specified, e.g. wc -lw will count both lines and
  27.     words. The default is to count everything. 
  28.     wc can accept one or more filenames. If none, wc will use the standard
  29.     input. If more than one, wc will accumulate totals of everything
  30.     counted thus far.
  31.     
  32.  
  33. Examples:
  34.     wc foo          count lines, words, characters in file foo.
  35.     wc <bar          counts lines, words, characters in file bar.
  36.     wc foo bar    counts lines, words, characters form files foo and bar,
  37.               and also displays totals.
  38.     wc -w test    counts only the number of words in file test.
  39.     wc -lc test   counts the number of lines and characters in file test.
  40.  
  41.  
  42.